//
//  AttendanceViewController.m
//  xjairOA
//
//  Created by Arthas Royal on 1/12/16.
//  Copyright (c) 2016 net. All rights reserved.
//

#import "AttendanceViewController.h"
#import "AppDelegate.h"
#import "Constants.h"

@interface AttendanceViewController ()

@end

@implementation AttendanceViewController

NSArray * attendanceArray;
AppDelegate * appDelegate;
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.navigationItem.title=@"考勤信息";
    appDelegate = [UIApplication sharedApplication].delegate;
    //NSDictionary * params = @{@"id":self.noticeId};
    [appDelegate.manager
     POST:url7
     parameters:nil
     success:^(AFHTTPRequestOperation *operation, id responseObject) {
         attendanceArray = responseObject;
         NSDictionary * dict = [attendanceArray objectAtIndex:0];
         self.amOnHour.text = [dict objectForKey:@"amOnHour"];
         self.pmOnHour.text = [dict objectForKey:@"pmOnHour"];
     } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
         NSLog(@"异常:%@",error);
     }];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
